import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false

const vm = new Vue({
    beforeCreate() {
        Vue.prototype.$bus = this; // 安装总线
    },
    router,
    store,
    render: h => h(App),
}).$mount('#app')

// console.log('vm实例', vm)
// console.log('Vue构造函数', Vue)
// console.log(vm.__proto__ === Vue.prototype);
